POV-Ray : Newsgroups : povray.beta-test : HF_Square : HF_Square Server Time
31 Jul 2024 08:29:03 EDT (-0400)
  HF_Square  
From: Greg M  Johnson
Date: 6 Sep 2001 15:04:59
Message: <3B97C920.5D39625F@aol.com>
I think we lost something when we didn't include the MegaPov feature
that allowed one to do an "automatic" height field from a function or
pattern.
(okay okay okay, Ken, yes it's too late to whine about feature
requests!)

That feature would have been the coolest solution to my repeated
complaint about diffuse==0 on the edges of isosurfaces with step
functions.  The solution that 3.5 offers-- HF_Square-- appears to be a
bit clunky, and so far I have been unable to find a syntax that the
machine will accept. Adding (x,y,z) doesn't help.

//------------------------

#include "colors.inc"
#include "shapes.inc"
#declare fn_X = function { pigment { crackle solid color_map { [0 rgb 0]
[1 rgb 1] }}}

HF_Square(fn_X ,<-12,-12,-12>,<12,12,12>,<100,100>, no,
"c:\pov35\include\dangme")

camera {
   location <0, 10, -25> //was z of 15
       angle 22
   look_at <0,.5,0>
}

light_source { <480, 1620, -980> color White*1 }
light_source { <-4000, -400, -4000> color White*.6 }


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.